{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}	

{$html->toolbar->title('##Database tools##')}

{script src=js/service.js}
{script_def}
	loading='##LOADING##';
{/script_def}
<div style="float:left; width: 10%;">
	{include file=maintenance/links.tpl}
</div>

<div style="width: 85%; float: left">
	<div style="width: 35%; float: left">
		<fieldset>
			<legend>##ACTIONS##</legend>
			<a href="javascript:void(0)" onClick="ag_syncUsers()">##SYNCRONISE JOOMLA<->AGORA USERS##</a>
			<br/><br/>
			<a href="javascript:void(0)" onClick="ag_optimize()">##OPTIMIZE DATABASE TABLES##</a>
			<br/><br/>
			<a href="javascript:void(0)" onClick="ag_installClean('##DB CLEAN WARNING##')">##INSTALL CLEAN DATABASE##</a>
			<br/><br/>
			<a href="javascript:void(0)" onClick="ag_recountPosts()">##RECOUNT FORUM POSTS##</a>
			<br/><br/>
			<a href="javascript:void(0)" onClick="ag_recountUserPosts()">##RECOUNT USER POSTS##</a>
			<br/><br/>
			<a href="javascript:void(0)" onClick="ag_fixUserDuplication()">##FIX USER DUPLICATION##</a>
			<br/><br/>
			<a href="javascript:void(0)" onClick="ag_addallUsersToGlobal()">##ADD ALL USERS TO GLOBAL GROUP##</a>
			<br/><br/>
			
<!-- 		<a href="javascript:void(0)" onClick="ag_generateHtmlArticles()">##GENERATE HTML ARTICLES##</a>
			<br/><br/>
 -->
			<a href="javascript:void(0)" onClick="$('agora_log').empty()">##CLEAR LOG##</a>
		</fieldset>
	</div>
	<div style="font-size : 120%; width: 63%; float: left; margin-left: 2%;">
		<fieldset>
			<legend>##LOG##</legend>
			<div id="agora_log" style="overflow: auto; max-height: 300px">
			</div>
		</fieldset>
	</div>
</div>

<div style="clear: both"></div>